<?php
/*
 * 标题：阿里紫订单管理系统
 * 作者：忆天网络 QQ715457186
 * 官方网址：www.fjd100.com||www.yi66.nett
 */
$config= array(
	'URL_MODEL' => 0,
	'ALIZI_VERSION' => 'V2.6.0',
	'SHOW_PAGE_TRACE'     => true, // 调式跟踪信息
	'DATA_CACHE_PATH'     => './Public/Cache/', 
	'TOKEN_ON'=>false,  // 是否开启令牌验证
	'TOKEN_RESET'=>true,  //令牌验证出错后是否重置令牌 默认为true
	'TOKEN_NAME'=>'__hash__',
	'TOKEN_TYPE'=>'md5', 
	'ALIZI_API'=>'http://api.alizi.net/',
	'LANG_AUTO_DETECT'=>false,
	'DEFAULT_LANG'=>'zh-cn',
	'WAP_THEME'=>'Item',
	
	'HTML_PATH' => '/Html',
	'HTML_FILE_SUFFIX' => '.html',// 默认静态文件后缀

	'DEFAULT_AJAX_RETURN' => 'json', 
	'TMPL_ACTION_ERROR'   => 'Public/success.html', 
    	'TMPL_ACTION_SUCCESS' => 'Public/success.html', 
	'ALIZI_THEME_ROOT'   => 'Home/Tpl/Alizi/',
	'ALIZI_TEMPLATE'=>array(
		'thin'=>'紧凑表单',
		'alizi'=>'宽松表单',
		'skin'=>'块状表单',
		'ugly'=>'老套表单',
	),
	'ORDER_STATUS' => array(
		0=>'<i class="statis-0">待支付</i>',
		1=>'<i class="statis-1">已付款</i>',
		2=>'<i class="statis-2">确认</i>',
		3=>'<i class="statis-3">发货</i>',
		4=>'<i class="statis-4">签收</i>',
		5=>'<i class="statis-5">拒收</i>',
		6=>'<i class="statis-6">关闭</i>',
		7=>'<i class="statis-7">完结</i>',
		//8=>'<i class="statis-8">申请退款</i>',
		//9=>'<i class="statis-9">已退款</i>',
		//10=>'<i class="statis-9">关联单</i>',
	),
	'PAYMENT' => array(
		1=>array('name'=>'货到付款','info'=>''),
		2=>array('name'=>'支付宝','info'=>''),
		3=>array('name'=>'微信支付','info'=>''),
		//4=>array('name'=>'担保交易','info'=>''),
		5=>array('name'=>'扫码支付','info'=>''),
		6=>array('name'=>'银行汇款','info'=>''),
		9=>array('name'=>'微信支付','info'=>''),
	), 
	'COMMENTS_TEMPLATE' => array(
		1=>'评论模板一',
		2=>'评论模板二',
		3=>'评论模板三（可评）',
	),
	'TEMPLATE_OPTIONS'=>array(
		'salenum'=>array('name'=>'已售数量','request'=>false,'checked'=>false),
		'price'=>array('name'=>'合计:','request'=>false, 'checked'=>true),
		'quantity'=>array('name'=>'数量:','request'=>true,'checked'=>true),
		'datetime'=>array('name'=>'选择时间','request'=>true,'info'=>'请选择时间', 'checked'=>true),
		'name'=>array('name'=>'收货人名','request'=>true,'info'=>'输入您的姓名或称呼','checked'=>true),
		'mobile'=>array('name'=>'手机号码','request'=>true,'info'=>'输入您的手机号码','checked'=>true),
		'phone'=>array('name'=>'联系电话','request'=>false,'info'=>'输入您的联系电话','checked'=>true),
		'region'=>array('name'=>'选择地区','request'=>true,'checked'=>true),
		'address'=>array('name'=>'详细地址','request'=>true,'info'=>'请填写您的详细地址','checked'=>true),
		'zcode'=>array('name'=>'邮政编码','request'=>false,'info'=>'请填写邮政编码','checked'=>false),

		'qq'=>array('name'=>'QQ 号码','request'=>true,'info'=>'请填写QQ 号码','checked'=>false),
		'mail'=>array('name'=>'电子邮箱','request'=>true,'info'=>'请填写您常用的电子邮箱','checked'=>false),
		'remark'=>array('name'=>'留言备注','request'=>false,'info'=>'额外需求请留言','checked'=>true),
		'verify'=>array('name'=>'验 证 码','request'=>true,'info'=>'请填写验证码','checked'=>true),
		'code'=>array('name'=>'短信验证','request'=>true,'info'=>'请填写手机验证码','checked'=>true),
		'payment'=>array('name'=>'支付方式','request'=>true, 'checked'=>true),
	),
	'DEFAULT_OPTIONS'=>array('quantity','price','name','mobile','region','address','remark','payment'),
	'DEFAULT_COLOR'=>array(
		'body_bg'=>'FAFAFA','form_bg'=>'FFFFFF','title_bg'=>'666666','button_bg'=>'EE3300','font'=>'333333','border'=>'666666','nav_bg'=>'EE3300'
	),
	'ALIZI_ROUTE' => true,
	'ROUTE_RULES' => array(
		'Index'=>array(
			'a'=>':a.html',
			'order'=>array('id'=>'id/:id.html',),
			'category'=>array('id'=>'category-:id.html',),
			'article'=>array('id'=>'article-:id.html',),
			'detail'=>array('id'=>'detail-:id.html',),
			'result'=>array('order_no'=>'result/:order_no.html',),
			'pay'=>array('order_no'=>'pay-:order_no.html',),
		),
		'Item'=>array(
			'a'=>'item/:a.html',
			'index'=>array('uid'=>'item/index.html',),
			'category'=>array('id'=>'item/category-:id.html',),
			'order'=>array('id'=>'item/id-:id.html',),
			'detail'=>array('id'=>'item/detail-:id.html',),
		),
		'Wap'=>array(
			'a'=>'wap/:a.html',
			'index'=>array('uid'=>'wap/index.html',),
			'order'=>array('id'=>'wap/id-:id.html',),
			'category'=>array('cid'=>'wap/category-:cid.html',),
		),
		'Order'=>array(
			'index'=>array('id'=>'single/:id.html'),
			'pay'=>array('order_no'=>'Order/id-:order_no.html',),
			'payWxPayJsApi'=>array('order_id'=>'Order/wxpay-:order_id.html',),
		),
	),
	'ADMIN_AUTH'=>array(
		'itemView'=>'商品查看',
		'itemAdd'=>'商品添加',
		'itemModify'=>'商品编辑',
		'itemCategory'=>'商品分类',
		'itemAuth'=>'商品受权',
		'itemComments'=>'商品评论',
		'orderView'=>'订单查看',
		'orderModify'=>'订单修改',
		'orderStatistics'=>'订单统计',
		'article'=>'文章管理',
		'user'=>'会员管理',
		'setting'=>'设置管理',
	),
	'AGENT_AUTH'=>array(
		'user'=>'下级分销',
		'import'=>'批量操作',
		'modify'=>'修改订单',
		'down'=>'导出订单',
		'view'=>'查看订单信息',
	),
	
);

$db = file_exists("./Public/Common/alizi.db.php")?include("alizi.db.php"):array();
$express = include("alizi.express.php");
$setting = include("alizi.setting.php");
$auth = include("alizi.auth.php");
return array_merge($config,$db,$express,$setting,$auth);
?>